package com.jic.market.request.rest.discount;

import com.jic.market.response.rest.coupon.QueryCouponPersonResponse;
import com.jic.market.response.rest.discount.GiftDetail;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/27
 */
@Data
public class ConditionDiscountRequest implements Serializable {
    private static final long serialVersionUID = 5347918093291117111L;

    @NotBlank(message = "条件活动编码不能为空")
    @ApiModelProperty(notes = "活动编码")
    private String promotionCode;

    @NotNull(message = "添加活动类型不能为空")
    @ApiModelProperty(notes = "活动类型")
    private Integer frontPromotionType;

    @ApiModelProperty(notes = "活动优惠金额")
    private BigDecimal promotionDiscountTotalAmount;

    @ApiModelProperty(notes = "活动优惠运费")
    private BigDecimal promotionDiscountFreightAmount;

    @NotNull(message = "商品编码集合不能为空")
    @ApiModelProperty(notes = "商品编码集合")
    private List<String> thirdSkuIdList;
    @ApiModelProperty(notes = "赠品信息或换购信息")
    private List<GiftDetail> giftDetailList;

    @ApiModelProperty(notes = "优惠劵信息")
    private QueryCouponPersonResponse couponInfo;

}
